import 'package:flutter/material.dart';
import 'package:ytbusiness/utils/screen_adaptation.dart';
import 'package:ytbusiness/widgets/widgets.dart';

/// 修理厂 评价成功
class EvaluationSuccess extends StatefulWidget {
  @override
  _EvaluationSuccessState createState() => _EvaluationSuccessState();
}

class _EvaluationSuccessState extends State<EvaluationSuccess> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: customAppBar(context, title: "发表评价"),
      body: SingleChildScrollView(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            SizedBox(
              height: setWidth(50),
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                Container(
                  width: setWidth(100),
                  height: setWidth(100),
                  child: Image.asset("assets/images/success_yellow.png"),
                ),
              ],
            ),
            SizedBox(
              height: setWidth(26),
            ),
            Container(
              child: Text(
                "评价成功",
                style: TextStyle(color: Color(0xff333333), fontSize: setSp(16)),
              ),
            ),
            SizedBox(
              height: setWidth(39),
            ),
            GestureDetector(
              onTap: () {
                Navigator.popUntil(
                    context, ModalRoute.withName('repair_factory_home'));
              },
              child: Container(
                margin:
                    EdgeInsets.only(left: setWidth(31), right: setWidth(31)),
                padding:
                    EdgeInsets.only(top: setWidth(11), bottom: setWidth(11)),
                decoration: BoxDecoration(
                    borderRadius: BorderRadius.circular(24),
                    border: Border.all(
                        color: Color(0xff989898), width: setWidth(0.5))),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text(
                      "返回首页",
                      style: TextStyle(
                          color: Color(0xff989898), fontSize: setSp(16)),
                    ),
                  ],
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
